﻿//for show tools
$(document).ready(function() {
	initStyle();
	$(".item-img-wrapper img").click(function(){
		var imgSrc = $(this).attr("src");
		
		if(imgSrc.indexOf("large")>0){
			imgSrc = imgSrc.replace("large","small");
		} else {
			imgSrc = imgSrc.replace("small","large")
		}
		$(this).attr("src",imgSrc);
	});
});

function initStyle(){
	//show header
	$("#topheader").css("width",window.innerWidth);
	$("#topheader").fadeIn("slow");
}

$(window).resize(function(){
	//show header
	$("#topheader").css("width",window.innerWidth);
});